#!/bin/bash
###SHELLPACK preamble spinplace 0

###SHELLPACK parseargBegin
###SHELLPACK parseargEnd

###SHELLPACK self_extract spinplace.c 

mkdir $SHELLPACK_SOURCES/spinplace-${VERSION}-installed
gcc -Wall -lpthread $SHELLPACK_TEMP/spinplace.c -o $SHELLPACK_SOURCES/spinplace-${VERSION}-installed/spinplace || \
	die "Failed to build spinplace"

echo spinplace installed successfully
exit $SHELLPACK_SUCCESS

###SHELLPACK include_file spinplace.c
